#include "SingleSampleOptimizationSupervisor.h"
#include <memory.h>

using namespace learn;

SingleSampleOptimizationSupervisor::SingleSampleOptimizationSupervisor(float *_input, int _inputSize, float *_output, int _outputSize) 
	: input(_input), inputSize(_inputSize), output(_output), outputSize(_outputSize) {	
}
	
int SingleSampleOptimizationSupervisor::getSampleCount() {
	return 1;
}

int SingleSampleOptimizationSupervisor::getInputLength() {
	return inputSize;
}

void SingleSampleOptimizationSupervisor::getInput(int index, float* outInput) {
	memcpy(outInput, input, inputSize * sizeof(float));
}

int SingleSampleOptimizationSupervisor::getTargetLength() {
	return outputSize;
}

void SingleSampleOptimizationSupervisor::getTarget(int index, float* outOutput) {
	memcpy(outOutput, output, outputSize * sizeof(float));
}